<template>
  <div class="recommend">
    <div v-for="item in recommends" :key="item.id" class="recmmend-item">
    <a :href="item.link">
      <img :src="item.image" alt="">
      <div>{{item.title}}</div>
    </a>
    </div>
  </div>
</template>

<script>
export default {
  name:"RecommendView",
  props:{
    recommends:{
      type:Array,
      default(){
        return []
      }
    }
  }
}
</script>

<style>

  .recommend {
    display: flex;
    width: 100%;
    text-align: center;
    padding: 1rem 0 1rem;
    border-bottom:8px solid #eee;
    font-size: 1.2rem;
  }
  .recmmend-item {
    flex:1;
  }
  .recmmend-item img {
    width: 100%;
    margin-bottom: .8rem;
    
  }
</style>